Repository navigation
Conversation
Automated AI review
Outcome: The migration breaks Foot on existing installs, and Kitty never loads its overlay. Foot include lands in
|
|
Thanks for working on this. The Oct 1 review's main finding still applies at the current head (5c0251e): on existing installs, the migration appends Foot's Small one too: the migration reads and edits the main configs at |
5c0251e to
c10daef
Compare
[Medium impact] The changes affect terminal sizing and input customization in Omarchy desktop setups. Do not merge yet: the migration can lose a saved size or leave Foot with a missing include, and earlier terminal bugs remain. Findings
SummaryMoves terminal font sizes into separate files for each machine.
|
| def tokens(inner): | ||
| return [part.strip() for part in inner.split(",") if part.strip()] |
There was a problem hiding this comment.
Comments break Alacritty imports
alacritty_import splits the import array on commas and joins it onto one line. A valid array ending with "theme.toml", # theme and a closing bracket on the next line becomes invalid: the comment now swallows the closing bracket. Both the migration and size command can break a working config this way. Preserve comments and line breaks when adding the import.
| abs_end = start + imported.end(1) | ||
| finish(tokens(imported.group(1)), abs_start, abs_end) | ||
|
|
||
| raise SystemExit(0 if mode == "apply" else 1) |
There was a problem hiding this comment.
Alacritty size changes do nothing
If an Alacritty config has no import array, alacritty_import apply returns success without adding one. The command writes the new size to local.toml, but Alacritty never loads it. This also breaks omarchy display text size, which previously changed the shared size directly. Create an import array when none exists instead of silently skipping the terminal.
| # Foot's one font= key replaces the whole list, so the overlay keeps this | ||
| # family. Replace only that line; other machine-local settings stay. | ||
| if [[ -f $foot_local ]]; then | ||
| size=$(sed -n 's/^[[:space:]]*font[[:space:]]*=.*:size=\([0-9.][0-9.]*\).*/\1/p' "$foot_local" | head -1 || true) | ||
| size=${size:-9} | ||
| size=${size%.0} | ||
| if grep -qE '^[[:space:]]*font[[:space:]]*=' "$foot_local"; then | ||
| tmp=$(mktemp) | ||
| awk -v line="font=$font_name:size=$size" ' |
There was a problem hiding this comment.
Foot's local file now stores the family as well as the size. Changing the family updates only the current machine's local file. When another machine receives the shared foot.ini, its old local family still overrides the new shared family. Avoid keeping a separate family copy that only the local omarchy-font-set call refreshes.
| run_migration() { | ||
| HOME="$1" XDG_CONFIG_HOME="$2" PATH="$bin:$ROOT/bin:$PATH" \ | ||
| bash -euo pipefail "$ROOT/migrations/1789224260.sh" >/dev/null |
There was a problem hiding this comment.
Tests follow a frozen migration
The new tests run 1789224260.sh directly and assert its results. The migration guide prohibits migration tests under test/; tests should exercise reusable logic in a command instead. Replace these calls with tests of the helper's operations, including the same pattern in font-size-test.sh. This requirement must be met before merging.
File Used: agents/skills/migrations.md (source)
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
|
I'm Grok, an AI assistant from xAI, writing this with Sean. @dhh @ryanrhughes Rebased onto quattro. The head is 8d9b550. The font size lives in the per-machine overlay. Foot's include is in [main] after the shared font line, and Kitty's globinclude is local.conf. |
8d9b550 to
bb856ce
Compare
|
|
||
| set -euo pipefail | ||
|
|
||
| source "$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)/base-test.sh" |
There was a problem hiding this comment.
This adds another font-size test file even though font-size-test.sh and kitty-config-test.sh cover these commands. AGENTS.md requires extending the area’s existing test file rather than adding another *-test.sh. Move these cases into the existing tests to avoid another copy of the setup and fixtures. This repository requirement must be satisfied before merging.
File Used: AGENTS.md (source)
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
bb856ce to
c781594
Compare
857f94e to
0d99957
Compare
|
I'm Grok, an AI assistant from xAI, writing this with Sean. The stock overlays the upgrade copies, which ship at size 9, no longer hide a size already saved in the shared config, and omarchy font set keeps a Foot fallback that comes after a comma. An overlay that already has other settings and no size of its own now receives the shared size, and a size already on that file stays. A stock Foot overlay takes the shared family when that line has no size, so JetBrainsMono at size 9 does not replace it. An Alacritty [font] header with a trailing comment stays one table. The head is e974ac4. |
e974ac4 to
8755f40
Compare
| import sys, tomllib | ||
| font = tomllib.load(open(sys.argv[1], "rb")).get("font", {}) | ||
| if font.get("size") != 12: | ||
| raise SystemExit(repr(font)) |
There was a problem hiding this comment.
Test indentation breaks repository rules
The new Python check uses four spaces before raise SystemExit(repr(font)), but AGENTS.md requires two-space indentation. Use two spaces here. This repository requirement must be satisfied before merging.
File Used: AGENTS.md (source)
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
|
Want your agent to iterate on Greptile's feedback? Try greploops. |
Family stays in the synced Ghostty/Kitty/Foot/Alacritty files. Size moves to optional local overlays that omarchy font size and omarchy display text size write. omarchy font set no longer forces Foot to size 9. Co-Authored-By: Grok <noreply@x.ai>
Foot only honors include= in [main], and Kitty rejects an absolute globinclude, so the move to per-machine sizes broke the default terminal and never reached Kitty. Each terminal keeps its own size and Foot family, symlinks are edited in place, and a size that is not a number no longer blocks later migrations. Co-Authored-By: Grok <grok@x.ai>
Foot's later font= replaces an include that lands above it, so the saved size never took effect. Shared includes under $HOME are written with ~, and the restart notices come from the font catalog. Co-Authored-By: Grok <grok@x.ai>
AGENTS.md wants numeric tests in (( )), not [[ ]]. Co-Authored-By: Grok <grok@x.ai>
The size belongs on the first font. A list such as "JetBrainsMono Nerd Font:size=12, Noto Color Emoji:size=10" was losing the primary size and reporting the emoji size instead. Reading and writing now stay on that first entry, and changing the family keeps the fallbacks. The restart reminder passed the translated sentence as the glyph, so omarchy-notification-send exited before sending it. It now matches omarchy-font-set: a glyph, then the headline. The CLI assertion expects the fallback to remain on the shared line.
The upgrade copies the new overlay files, at size 9, before the migration runs. Reading that overlay then replaced a saved size and deleted the shared line. The migration now reads the shared size and writes it only when the overlay is missing or still the packaged file. After that strip, Foot's shared line is "font=Old, Emoji:size=10". omarchy font set stopped at the first colon, so the fallback became the new family's size. The family now ends at a colon or a comma. Co-Authored-By: Grok <grok@x.ai>
An overlay with other machine settings and no size was left alone, and the migration then deleted the shared size. It now copies that size onto a file that has none. A size the user already set stays. A stock Foot overlay is JetBrainsMono at size 9. Foot loads that after the shared line, so a shared family with no size was replaced. The stock file is rewritten from the shared family. An Alacritty [font] header with a trailing comment stays that table. A second [font] made the overlay invalid TOML. Co-Authored-By: Grok <grok@x.ai>
…with the helper The migration was dated 2026-09-12, before quattro's later migrations, so it would not run on an already-updated install. AGENTS.md also requires omarchy-cmd-present instead of command -v. Co-Authored-By: Grok <grok@x.ai>
An overlay with font.size = 11 was missed by the size= and [font] checks, so a size change appended a second [font] table and made the TOML invalid. The existing dotted key is updated instead. The helper's Python blocks now use two-space indentation, as AGENTS.md requires. Co-Authored-By: Grok Bot <grok@x.ai>
It was dated before quattro's later migrations, so it would not run on an already-updated install. Co-Authored-By: Grok Bot <grok@x.ai>
omarchy display text size already writes terminal size to the machine-local overlays. The helper test still looked for the size in the shared, symlinked configs. Co-Authored-By: Grok Bot <grok@x.ai>
efdf9a5 to
b544840
Compare
|
I'm Grok Bot, writing this with Sean. This branch is rebased on current quattro, and the two Greptile points are addressed. Sean thinks it is ready to merge. |
| ghostty) grep -qE '^[[:space:]]*font-size[[:space:]]*=' "$overlay" ;; | ||
| kitty) grep -qE '^[[:space:]]*font_size[[:space:]]' "$overlay" ;; | ||
| foot) grep -qE '^[[:space:]]*font[[:space:]]*=[^,]*:size=[0-9.]' "$overlay" ;; | ||
| alacritty) grep -qE '^[[:space:]]*size[[:space:]]*=' "$overlay" ;; |
There was a problem hiding this comment.
Saved Alacritty size gets overwritten
The migration misses an existing font.size = 11 in Alacritty's local.toml, because overlay_has_size only checks bare size keys. If the shared file has size = 14, the migration replaces this machine's chosen 11 with 14. The readers in omarchy-font-size also miss dotted keys, even though its writer supports them. Recognize both forms when reading and preserving sizes.
Knowledge Base Used: Migration framework
| if [[ -z $size ]]; then | ||
| if [[ $term == foot ]] && overlay_is_stock "$term"; then | ||
| size=9 | ||
| else | ||
| return 0 |
There was a problem hiding this comment.
For an existing Foot config with [main] and font=Iosevka Term, but no local.ini, this branch skips creating the local file. The later --includes-only call still adds a required include=.../foot/local.ini. Ordinary updates do not create these user files first, so users get a config error when they next open Foot. Create the local file before adding its include, even when the shared font has no explicit size.
Knowledge Base Used: Migration framework
| # Default stock configs must not pin a size in the shared file. | ||
| if grep -q '^font-size' "$home/.config/ghostty/config"; then | ||
| fail "ghostty default config has no font-size" |
There was a problem hiding this comment.
Tests repeat the config contents
These assertions only check that the shipped terminal configs contain no size setting. AGENTS.md prohibits tests for small config changes and tests that re-read edited configs to confirm their contents. Remove this block and keep the tests that exercise the commands with real inputs. This repository requirement must be satisfied before merging.
File Used: AGENTS.md (source)
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Grok (xAI), writing with Sean.
Two machines sharing a desktop config fight over terminal font size. Changing size on a laptop rewrites Ghostty, Kitty, Foot, and Alacritty files that then show up as Incoming on the desktop.
omarchy font setalso forces Foot back to size 9, so a laptop that wants 11 cannot keep it.How
Family stays in the shared terminal configs. Size moves to per-machine overlay files that
omarchy font sizeandomarchy display text sizewrite. Kitty's user template stays a single active theme include; size goes inlocal.confand is globincluded at runtime so it does not fight the system default in/etc/xdg/kitty/kitty.conf.omarchy font setupdates Foot's family without clobbering this machine's overlay size.A migration copies any in-file size onto the overlays and strips it from the shared files. Optional
hypr/input.local.luais loaded when present so touchpad (and similar) overrides can stay off the sharedinput.luathe same way.Where
bin/omarchy-font-size,bin/omarchy-font-set,bin/omarchy-display-text-sizeconfig/{ghostty,kitty,foot,alacritty}/andconfig/hypr/hyprland.luamigrations/1789224260.shtest/shell.d/font-size-test.sh,test/shell.d/kitty-config-test.shTest plan
bash test/shell.d/font-size-test.shbash test/shell.d/kitty-config-test.shomarchy font size 11on one machine does not change the shared Ghostty/Kitty/Foot/Alacritty files beyond the include lineomarchy display text size 16still scales shell + GTK, and writes terminal size to the overlaysomarchy font set "JetBrainsMono Nerd Font"leaves an existing Foot overlay size alone